package com.shop.user.api.api;

import com.shop.common.model.param.user.UserPayLogInput;
import com.shop.common.util.excption.UserNotFoundException;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @Description:
 *
 * @author zhoulk
 * @date: 2019年04月15日  15:38
 */
@RequestMapping(value = "/user/account")
public interface IAccountApi {

    @GetMapping(value = "/account")
    String qryAccount(HttpServletRequest request) throws UserNotFoundException;

    @GetMapping(value = "/logs")
    String qryLogs(UserPayLogInput input, HttpServletRequest request) throws UserNotFoundException;

    @PostMapping(value = "/integral/recharge")
    String addIntegralRecharge(@RequestBody Map<String,Object> map, HttpServletRequest request) throws UserNotFoundException;

}
